﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpleadoListForm.aspx.cs" 
Inherits="UILGestion.Seguridad.EmpleadoListForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>


<%@ Register src="../Seguridad/EmpleadoListGrid.ascx" tagname="EmpleadoListGrid" tagprefix="uc2" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"
      EnablePartialRendering="true" EnablePageMethods="true" EnableScriptGlobalization="true">
    </asp:ToolkitScriptManager>
  
   <uc1:menuCtrl ID="menuCtrl1" runat="server" />
 <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="LISTA EMPLEADOS" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
  
 <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">
 
   
     <table cellspacing="1" >
          <tr>
              <td Width="70%">
              <table cellspacing="1" >
          <tr>
<td width="100px" align="right">Descripcion:</td>
             

            <td>
                <asp:TextBox ID="descripcionTextBox" runat="server" AutoPostBack="true" Width="250px"></asp:TextBox>
                </td>
            <td colspan="2">
                <asp:CheckBox ID="anuladoCheckBox" runat="server" Text="Ver Inactivos" AutoPostBack="true"/>
                </td>
              <td>
                  &nbsp;</td>
              <td>
                  &nbsp;</td>
 </tr>
                  <tr>
                      <td>
                          &nbsp;</td>
                      <td>
                          &nbsp;</td>
                      <td>
                          <asp:Button ID="refreshButton" runat="server" CssClass="ms-crm-List-Header" 
                               Text="Actualizar" />
                      </td>
                      <td>
                          <asp:Button ID="Button2" runat="server" CssClass="ms-crm-List-Header"  Width="80px"
                               onclick="nuevoButton_Click" Text="Nuevo" />
                      </td>
                  </tr>
 </table>
 </td>
      
          </tr>
      </table>
           
            <hr />
   
   
     <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>

 <uc2:EmpleadoListGrid ID="EmpleadoListGrid1" runat="server" DataSourceID="EmpleadoListODS" />

            <asp:ObjectDataSource ID="EmpleadoListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="GetEmpleadoList" 
             typeName="BOL.EmpleadoBL" >
               <SelectParameters>
                <asp:ControlParameter Name="descripcion"   ControlID="descripcionTextBox"    PropertyName="Text"/>
                <asp:ControlParameter Name="bitVerActivo" Type="Boolean" ControlID="anuladoCheckBox"  />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
       
           
       
       </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="refreshButton" />
       <asp:AsyncPostBackTrigger ControlID="descripcionTextBox" />
       <asp:AsyncPostBackTrigger ControlID="anuladoCheckBox" />
       
        
        
           </Triggers>
       
     </asp:UpdatePanel>
   


     
       </asp:Panel>



    </form>
</body>
</html>
